<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '用户注册';
//$this->params['breadcrumbs'][] = $this->title;

$this->registerJsFile('/js/jquery.min.js');
$this->registerJsFile('/js/layer/layer.js?v=1.0.0');

$this->registerCssFile('/css/user/login.css?v=1.0.6');
$this->registerJsFile('/js/user/signup.js?v=1.0.1');
?>
<div class="bg-gray p40">
	<div class="register-box bg-white shadow p60 bg-white">
		<div class="block f22 mb30"><?= Html::encode($this->title) ?>
		<div class="fr f14"><span class="info">已有帐号？</span><a class="red" href="/site/login">直接登录</a></div>
		</div>
		<form class="layui-form" action="/site/signup" method="post" id="signup-form">
		  <div class="layui-form-item">
			<label class="layui-form-label">用户名</label>
			<div class="layui-input-block">
			  <input type="text" id="username" name="username" placeholder="请输入用户名" class="layui-input"/>
			</div>
		  </div>
		  <div class="layui-form-item">
			<label class="layui-form-label">手机号</label>
			<div class="layui-input-block">
			  <input type="text" id="mobile" name="mobile" placeholder="请输入手机号" class="layui-input"/>
			</div>					
		  </div>	
			<div class="layui-form-item">
			  <label class="layui-form-label">验证码</label>
			  <div class="layui-input-inline" style="margin-left: 20px;">
					<input type="text" id="code" name="code" placeholder="验证码" autocomplete="off" class="layui-input"/>
			  </div>	
				<input type="button" class="layui-btn layui-btn-green" id="getcode" value="获取验证码"/>
				<input type="hidden" name="hashcode" id="hashcode"/>	
			</div>
		  <div class="layui-form-item">
			<label class="layui-form-label">密码</label>
			<div class="layui-input-block">
			  <input type="password" id="passwd" name="passwd" placeholder="请输入密码" class="layui-input"/>
			</div>
		  </div>				  
		  <div class="layui-form-item">
			<label class="layui-form-label">确认密码</label>
			<div class="layui-input-block">
			  <input type="password" id="re_passwd" name="re_passwd" placeholder="确认密码" class="layui-input"/>
			</div>
		  </div>
		  <div class="layui-form-item" style="width: 300px; margin: 0 auto;">
			  <div id="signup-submit" class="layui-btn layui-btn-normal layui-btn-fluid layui-btn-lg">立即注册</div>
		  </div>				  
		</form>
	</div>
</div>
